package com.heima.search.service;

import com.heima.model.search.dtos.UserSearchHistoryParamDTO;

import java.util.List;

/**
 * @author Fuqiang
 * @since :2023-03-31
 */
public interface SearchHistoryService {
    /**
     * 异步存储历史记录
     *
     * @param equipmentId 设备id
     * @param searchWords 搜索关键词
     * @param id          app用户id
     */
    void asyncSaveHistory(String equipmentId, String searchWords, Integer id);


    /**
     * 获取搜索历史记录
     *
     * @param dto
     * @return
     */
    List<String> loadHistory(UserSearchHistoryParamDTO dto);

}
